package com.filldream.sun.bean.baiduMap;

import com.filldream.sun.core.JsonUtil;

/**
 * 百度地图IP定位实体类
 * @author RickSun
 * @see 2019-10-13
 */
public class LocationByIp {

    /**
     * 详细地址信息: "CN|北京|北京|None|CHINANET|1|None"
     */
    private String address;

    /**
     * 简要地址信息: "北京市"
     */
    private String simpleAddress;

    /**
     *  城市: "北京市"
     */
    private String city;


    /**
     *  区县
     */
    private String district;


    /**
     *  省份:"北京市"
     */
    private String province;

    /**
     *  街道
     */
    private String street;

    /**
     * 门牌号
     */
    private String streetNumber;

    /**
     * 当前城市中心点经度
     */
    private String centerCityX;

    /**
     * 当前城市中心点维度
     */
    private String centerCityY;

    /**
     * 结果状态返回码： 0-正常 101-AK参数不存在 301-永久配额超限，限制访问 302-天配额超限，限制访问
     * http://lbsyun.baidu.com/index.php?title=webapi/ip-api
     */
    private Integer status;





    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getSimpleAddress() {
        return simpleAddress;
    }

    public void setSimpleAddress(String simpleAddress) {
        this.simpleAddress = simpleAddress;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }

    public String getStreetNumber() {
        return streetNumber;
    }

    public void setStreetNumber(String streetNumber) {
        this.streetNumber = streetNumber;
    }

    public String getCenterCityX() {
        return centerCityX;
    }

    public void setCenterCityX(String centerCityX) {
        this.centerCityX = centerCityX;
    }

    public String getCenterCityY() {
        return centerCityY;
    }

    public void setCenterCityY(String centerCityY) {
        this.centerCityY = centerCityY;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
       return JsonUtil.toJson(this);
    }
}
